<template>
	<view>
		<image 
		:src="image"  
		class="dlimage" mode="widthFix"></image>
	</view>
</template>

<script>
import { mapState, mapActions } from 'vuex';
export default {
	components: {
	},
	data() {
		return {
			//https://mjy-1318105650.cos.ap-chengdu.myqcloud.com/uploads/20230603/ae1a62965dd3f457fbb296c4e93fdd11.png
			image:'',
			height:'',
		}
	},
	onLoad() {
		this.getData();
	},
	onShow(){
		
	},
	methods: {
		 getData(){
			uni.request({
				url: '/user/userdlxyimg',
				data: {
				},
				success: res => {
					res = res.res
					if (res.code === 1) {
						this.image = res.data.image;
					}
				}
			});
		},
		bigImage(image){
			uni.previewImage({
				urls: [image], //需要预览的图片http链接列表，多张的时候，url直接写在后面就行了
				current: '', // 当前显示图片的http链接，默认是第一个
				success: function(res) {},
				fail: function(res) {},
				complete: function(res) {},
			})
		}
		
	}
}	
</script>

<style scoped lang="scss">
.dlimage{
	width: 100%;
}	
</style>